package com.ttbj.product.bean.dto;

import java.io.Serializable;
import java.util.Collection;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.ToString;

@JsonInclude(Include.NON_NULL)
public class ViewData implements Serializable {
	private static final long serialVersionUID = 9016452593568152695L;
	private int status;
    private String message;
    private Object data;
    private Integer total;
    private Collection<? extends Object> rows;
    
    public ViewData() {
    	status = 0;
    	message = "成功";
	}

    public ViewData(int status,String message, Object data) {
		this.status = status;
		this.data = data;
		this.message =  message;
	}

	public Collection<? extends Object> getRows() {
        return rows;
    }

    public void setRows(Collection<? extends Object> rows) {
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

	@Override
	public String toString() {
		return "ViewData [status=" + status + ", message=" + message + ", data=" + data + ", total=" + total + ", rows="
				+ rows + "]";
	}
    
     
}
